/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ManagedBeans;

import java.util.Locale;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;

/**
 *
 * @author Nascotix
 */
@ManagedBean
@SessionScoped
public class bundle {

    /**
     * Creates a new instance of bundle
     */
    
    //V.Locale
    private Locale locale = new Locale("fr");
    //Getter
    public Locale getLocale(){
        return locale;
    }
    
    //Constructeur
    public bundle(){}
    
    //Fonctions
    public void setToEnglish() {
        locale = new Locale("en");
    }
    
    public void setToFrench() {
        locale = new Locale("fr");
    }
    
    public void setToNetherlands() {
        locale = new Locale("nl");
    }
}
